<table cellspacing="0" cellpadding="0">
  <thead>
  <tr>
    <th class="hfirst" style="width: 100px; text-align: center;" <%= sort_td_class_helper "issueid" %>><%= sort_link_helper "Issue ID", "issueid" %></th>
    <th style="width: 42px;" <%= sort_td_class_helper "priority" %>><%= sort_link_helper "优先级", "priority" %></th>
    <th style="width: 50px;" <%= sort_td_class_helper "state" %>><%= sort_link_helper "状态", "state" %></th>
    <th style="text-align: center;">内容</th>
    <th width="6%">比率</th>
    <th width="10%" <%= sort_td_class_helper "created_at" %>><%= sort_link_helper "提交时间", "created_at" %></th>
    <th width="6%">工程师</th>
    <th width="6%">报告人</th>
  </tr>
  </thead>
  <tbody>
<% for issue in @tag.issues %>
  <tr>
    <td><%= link_to issue.project.key + "-IS-" + issue.issueid.to_s, issue_path(issue) %></td>
    <td><%= issue.priority %></td>
    <td><%= trans_issue_state_to_chs issue.state %></td>
    <td><%= issue.description %></td>
    <td><%= issue.ratio %></td>
    <td><%= issue.created_at.to_date %></td>
    <td><%= issue.developer.empty? ? "--" : issue.developer.collect {|user| [user.name, " ,"]}.to_s.chomp(" ,") %></td>
    <td><%= issue.reporter.empty? ? "--" : issue.reporter.collect {|user| [user.name, " ,"]}.to_s.chomp(" ,") %></td>
  </tr>
<% end %>
  </tbody>
</table>